package com.link.gateway.base.interstatistics.service;

import com.link.gateway.base.interstatistics.dao.mybatis.mapper.VisitInfoMapper;
import com.link.gateway.base.interstatistics.model.VisitStatistics;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: 王艳
 * @date: 2018-12-13
 * @comments:
 */
@Service
public class VisitInfoServiceImpl implements VisitInfoService {

    @Resource
    private VisitInfoMapper visitInfoMapper;

    /**
     * 将访问历史记录写入数据库
     *
     * @param list
     * @throws Exception
     */
    @Override
    public void insertVisitStatistics(List<VisitStatistics> list) throws Exception {
        visitInfoMapper.insertVisitStatistics(list);
    }
}

